
// 选中主表某行的逻辑


export default function handleTableSelect(props, moduleId, record, index) {
    let selectedData = this.props.editTable.getCheckedRows('ncc60071701list');

    // 只有在有选中项的时候，才可以点击批量添加子集
    if(selectedData.length > 0) {
        // this.props.button.setButtonDisabled({
        //     BatchAddSub: false
        // });
        this.setButtonStatus2('hasSelectedRow');
    }
    else {
        // this.props.button.setButtonDisabled({
        //     BatchAddSub: true
        // });
        this.setButtonStatus2('mainTableHasData');
    }

    this.setState({
        selectedRows: selectedData
    });
}
